package br.com.commons.utility.validator;


public class Validation {

	private String field;
	private ValidationRule rule;
	private String message;

	public Validation(String field, ValidationRule rule, String message) {
		this.field = field;
		this.rule = rule;
		this.message = message;
	}

	public ValidationRule getValidationRule() {
		return rule;
	}

	public String getField() {
		return field;
	}

	public String getMessage() {
		return message;
	}

	// public static void verifyIfEmpty(String value, String message,
	// List<Message> messages) {
	// if(value.isEmpty()) { messages.add(new Message(TypeMessage.ERROR,
	// message)); }
	// }
	//
	// public static void verifyIfNull(Object value, String message,
	// List<Message> messages) {
	// if(value == null) { messages.add(new Message(TypeMessage.ERROR,
	// message)); }
	// }
	//
	// public static void verifyIfValueOutLength(String value, int initValue,
	// int finalValue, Message message, List<Message> messages){
	// if(value.length() >= initValue && value.length() <=
	// finalValue){messages.add(message);}
	// }
	//
	// public static void verifyIfValueOutRange(Integer value, int initValue,
	// int finalValue, Message message, List<Message> messages){
	// if(value >= initValue && value <= finalValue){messages.add(message);}
	// }

}
